<template>
	<view class="content">
		<!-- <rich-text :nodes="url"></rich-text> -->
		<view v-html="url">
			
		</view>
	</view>
</template>

<script>
	import * as index from '@/api/index.js'
	export default {
		data() {
			return {
				url:"",
			}
		},
		onLoad(option) {
			this.onLoadData(option.name);
		},
		methods: {
			onLoadData(name){
				index.nameGetConfig({name: name}).then(res=>{
					if(res.data.wx_protocol){
						this.url = res.data.wx_protocol
					}
					else{
						this.url = res.data.yinsixieyi
					}
				})
			},
		}
	}
</script>

<style scoped lang="scss">
	page{
		background: #fff;
	}
	.content{
		background: #fff;
		padding: 30rpx;
	}
</style>
